using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;


namespace Ramparts
{
    /// <summary>
    /// This is a game component that implements IUpdateable.
    /// </summary>
    public class MenuItem 
    {
        public String text;
        public Vector2 position;
        public float itemValue;

        public MenuItem(string name, Vector2 pos)

        {
            // TODO: Construct any child components here
            this.text = name;
            this.position = pos;
            this.itemValue = 0;
        }

        /// <summary>
        /// Allows the game component to perform any initialization it needs to before starting
        /// to run.  This is where it can query for any required services and load content.
        /// </summary>
        public void Initialize()
        {
            // TODO: Add your initialization code here

        }


        /// <summary>
        /// Gets the text value for the menu item
        /// </summary>
        public string GetText ()
        {
         return this.text; 
        }
        
        /// <summary>
        /// Sets the text of the menu item
        /// </summary>
        /// <param name="value"></param>
        public void SetText (string value)
        { 
            this.text = value; 
        }

        /// <summary>
        /// Gets the position as a vector of the menu item
        /// </summary>
        /// <returns></returns>
        public Vector2 GetPosition()
        {
            return this.position;
        }

        /// <summary>
        /// Sets the position of the menu item
        /// </summary>
        /// <param name="value"></param>
        public void SetPosition(Vector2 value)
        {
            this.position = value;
        }

        /// <summary>
        /// Allows the game component to update itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        public void Update(GameTime gameTime)
        {
            // TODO: Add your update code here


        }
    }
}